<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>人力资源管理系统</title>

<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/css/bootstrap-table.min.css}">

<script type="text/javascript" th:src="@{/js/common/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap-table.min.js}"></script>
	

</head>
<body>

<nav class="navbar navbar-default"> 
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">首页</a>
    </div>

    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
         	 人员管理 <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
              <li><a href="/account/list">用户列表</a></li>
          </ul>
        </li>
      </ul>

       <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">系统设置 <span class="caret"></span></a>
          <ul class="dropdown-menu">
              <li><a href="/manager/accountList">账号管理</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/manager/roleList">角色管理</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/manager/permissionList">权限管理</a></li>
          </ul>
        </li>
      </ul>
      
      <form class="navbar-form navbar-left">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">搜索</button>
      </form>

      <ul th:if="${session.account}!=null" class="nav navbar-nav navbar-right">
        <li class="dropdown active">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
          欢迎回来: 
          [[${session.account}==null?'':${session.account.nickName}]]
           <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">Action</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="/account/logOut">退出登录</a></li>
          </ul>
        </li>
      </ul>
      
    </div>
  </div>
</nav>


<div align="center" style="width: 500px">
    <form action="/account/fileUploadController" method="post" enctype="multipart/form-data">
        <table class="table table-bordered" >
            <tr>
                <td>角色：</td>
                <td>
                    <th:block th:each="item : ${session.account.permissionList}">
                        <a >[[${item.name}]]</a>
                    </th:block>
                </td>
            </tr>

            <tr>
                <td>登录名：</td>
                <td>[[${session.account.loginName}]]</td>
            </tr>

            <tr>
                <td>密码：</td>
                <td><input type="password" name="password"></td>
            </tr>

            <tr>
                <td>昵称：</td>
                <td><input type="nickName" name="nickName"></td>
            </tr>

            <tr>
                <td>年龄：</td>
                <td><input type="age" name="age"></td>
            </tr>

            <tr>
                <td>头像：</td>
                <td>
                    上传文件：<input type="file" name="filename"/><br/>
                    <input type="submit"/>
                </td>
            </tr>

        </table>
    </form>
</div>

</body>
</html>